<template>
  <el-card shadow="never" class="aui-card--fill">
    <div class="mod-eightapp__eiuseparkinginfo}">
      <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
        <el-form-item>
          <el-input v-model="dataForm.id" placeholder="输入停车场编号搜素" clearable></el-input>
        </el-form-item>
        <el-form-item>
          <el-button icon="el-icon-search" @click="getDataList()"></el-button>
        </el-form-item>
      </el-form>
      <el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;">
        <el-table-column prop="parkId" label="停车场编号" header-align="center" align="center"></el-table-column>
        <el-table-column prop="parkingId" label="车位编号" header-align="center" align="center"></el-table-column>
        <el-table-column prop="ownerId" label="业主编号" header-align="center" align="center"></el-table-column>
        <el-table-column prop="starttime" label="开始时间" header-align="center" align="center"></el-table-column>
        <el-table-column prop="endtime" label="使用到期时间" header-align="center" align="center"></el-table-column>
      </el-table>
      <el-pagination
          :current-page="page"
          :page-sizes="[10, 20, 50, 100]"
          :page-size="limit"
          :total="total"
          layout="total, sizes, prev, pager, next, jumper"
          @size-change="pageSizeChangeHandle"
          @current-change="pageCurrentChangeHandle">
      </el-pagination>


      <!-- 弹窗, 新增 / 修改 -->
      <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
    </div>
  </el-card>

</template>

<script>
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './eiparkinginfo-add-or-update'
export default {
  mixins: [mixinViewModule],
  data () {
    return {
      mixinViewModuleOptions: {
        getDataListURL: '/eightapp/eiuseparkinginfo/page',
        getDataListIsPage: true,
        exportURL: '/eightapp/eiuseparkinginfo/export',
        deleteURL: '/eightapp/eiuseparkinginfo',
        deleteIsBatch: true
      },
      dataForm: {
        id: ''
      }
    }
  },
  components: {
    AddOrUpdate
  },
  methods:{
    init (dataList) {
      this.visible = true
      console.log(dataList)
    },
  }
}
</script>

<style>
.el-tag{

  /*width: 100px;*/
  width: 100px;
  height: 240px;
  font-size: 15px;
  text-align: center;
}
.el-col{
  min-width: 100px;
}
.el-row{
  margin-top:100px;
}
#box{
  width: 100%;
}
#font{
  font-size: 1px;
}
.tag-group{
  width: 100px;
  height: 150px;
}

</style>
